package com.hj.system.base.config;

import com.jagregory.shiro.freemarker.*;
import freemarker.template.SimpleHash;

public class ShiroTagsCustomer extends SimpleHash {
    public ShiroTagsCustomer() {
        put("authenticated", new AuthenticatedTag());
        put("guest", new GuestTag());
        put("hasAnyRoles", new HasAnyRolesTag());
        put("hasPermission", new HasPermissionTag());
        put("hasRole", new HasRoleTag());
        put("lacksPermission", new LacksPermissionTag());
        put("lacksRole", new LacksRoleTag());
        put("notAuthenticated", new NotAuthenticatedTag());
        put("principal", new PrincipalTag());
        put("user", new UserTag());
        put("hasPermissions", new HasPermissionTags());
    }
}
